/*4：输出倒等腰三角形，高度由用户输入。从下往上*的个数分别是1,3,5,...每次加两个。比如如下是高度为4的三角形 
   *******
    *****
     ***
      * */
package ZUOYE0424;

import java.util.Scanner;

public class Task4 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("输入高度：");
		int h = in.nextInt();
		for (int a = 1; a <= h; a++) {
			for (int b = 1; b <= a; b++) {
				System.out.print(" ");
			}
			for (int c = 1; c <= (h - a) * 2 + 1; c++) {
				System.out.print("*");
			}
			System.out.println();
		}
	}

}
